calculate HP of motor